<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <!--[if lt IE 9]>
    <script type="text/javascript" src="./Public/Admin/lib/html5.js"></script>
    <script type="text/javascript" src="./Public/Admin/lib/respond.min.js"></script>
    <script type="text/javascript" src="./Public/Admin/lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="./Public/Admin/css/H-ui.min.css" rel="stylesheet" type="text/css">

    <!--[if IE 6]>
    <script type="text/javascript" src="./Public/Home/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>网站后台管理系统</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script type="text/javascript" src="./Public/Admin/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="./Public/Admin/lib/layer/1.9.3/layer.js"></script>
	<link rel="stylesheet" href="./Public/Admin/lib/layer/1.9.3/skin/layer.css" id="layui_layer_skinlayercss">
	<link rel="stylesheet" type="text/css" href="./Public/Admin/css/iconfont.min.css" />
<title></title>
</head>
<body>
<div style="padding:20px 0 20px 20px;float:left;width:98%;">
		<table class="table table-border table-bordered table-bg welcometable">
			<tbody>
			  <tr class="text-c">
				<td style="background: #3bb4f2;font-size: 16px;font-weight: bold;color:#fff!important;">
					<a href="{:U('Download/import',array('id'=>'ems_fee'))}" style="color:#fff!important;">订单模板下载<i class="icon Hui-iconfont" style="font-size:18px;">&#xe640;</i></a>
				</td>
				<td>
					<form action="{:U('Import/doimportEms')}" method="post" id="postForm" enctype="multipart/form-data">
						<input type="file" class="btn btn-success" name="import"/>
						<input type="hidden" class="btn btn-success" name="emsid" value="" />
						<input type="button" class="btn btn-success"  id="importP" value="导入订单"/>
					</form>
				</td>
			  </tr>
			</tbody>
		</table>
</div>
    <include file="Public/footer_js" />
 <script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script>
	var url="{:U('Import/doimportEms')}";
	$("#importP").click(function() {
		var emsid=window.parent.emsid;
		$("input[name=emsid]").val(emsid);
        $("#postForm").ajaxSubmit({
			url:url,
            type : "post",  
            dataType : 'json',  
            success : function(data) {
				if(data.status==1){
					layer.msg(data.message,function(){
						parent.window.location.href =parent.window.location.href;
					});
				}else{
					layer.msg(data.message);
				}
            },  
            error : function(data) {  
                layer.msg('出错');
            }  
        });  
    });
</script>
</body>
</html>